package cn.edu.scau.cmi.huhaoxian.adapterPattern.adpater;

import java.util.ArrayList;
import java.util.List;

import cn.edu.scau.cmi.huhaoxian.adapterPattern.ITarget.Target;
import cn.edu.scau.cmi.huhaoxian.adapterPattern.adaptee.SortIntegerUtil;
import cn.edu.scau.cmi.huhaoxian.adapterPattern.adaptee.StdApdatee;
import cn.edu.scau.cmi.huhaoxian.adapterPattern.pojo.Student;

public class ObjectAdapter implements Target{
	private SortIntegerUtil sortIntegerUtil;
	private StdApdatee stdApdatee;
	
	public ObjectAdapter() {
		sortIntegerUtil = new SortIntegerUtil();
		stdApdatee = new StdApdatee();
	}
	
	@Override
	public List<Integer> sortIntegers(List<Integer> list) {
		// TODO Auto-generated method stub
		return sortIntegerUtil.sortIntegers(list);
	}
	@Override
	public ArrayList<Student> sortStudents(ArrayList<Student> students) {
		// TODO Auto-generated method stub
		return stdApdatee.sortStduents(students);
	}
	
}
